/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package mnstudent.datatranferobject;

import java.sql.Date;
import java.util.Objects;

/**
 *
 * @author 11520_000
 */
public class InfoSemesterYearDTO {
  
    //<editor-fold defaultstate="collapsed" desc="Attributes">
    
    private String  m_InfoSemesterYearID;
    private String  m_SemesterID;
    private String  m_AcademicYearID;
    private Date    m_DateStartCourseRegistration;
    private Date    m_DealineCourseRegistration;
    private Date    m_DealineFee;
    private Date    m_DealinePromation;
    private int     m_RatePromotion;
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Properties " >
    public String getInfoSemesterYearID() {
        return m_InfoSemesterYearID;
    }

    public void setInfoSemesterYearID(String m_InfoSemesterYearID) {
        this.m_InfoSemesterYearID = m_InfoSemesterYearID;
    }

    public String getSemesterID() {
        return m_SemesterID;
    }

    public void setSemesterID(String m_SemesterID) {
        this.m_SemesterID = m_SemesterID;
    }

    public String getAcademicYearID() {
        return m_AcademicYearID;
    }

    public void setAcademicYearID(String m_AcademicYearID) {
        this.m_AcademicYearID = m_AcademicYearID;
    }

    public Date getDealinePromation() {
        return m_DealinePromation;
    }

    public void setDealinePromation(Date m_DealinePromation) {
        this.m_DealinePromation = m_DealinePromation;
    }

    public Date getDealineFee() {
        return m_DealineFee;
    }

    public void setDealineFee(Date m_DealineFee) {
        this.m_DealineFee = m_DealineFee;
    }

    public Date getDateStartCourseRegistration() {
        return m_DateStartCourseRegistration;
    }

    public void setDateStartCourseRegistration(Date m_DateStartCourseRegistration) {
        this.m_DateStartCourseRegistration = m_DateStartCourseRegistration;
    }

    public Date getDealineCourseRegistration() {
        return m_DealineCourseRegistration;
    }

    public void setDealineCourseRegistration(Date m_DealineCourseRegistration) {
        this.m_DealineCourseRegistration = m_DealineCourseRegistration;
    }

    public int getRatePromotion() {
        return m_RatePromotion;
    }

    public void setRatePromotion(int m_RatePromotion) {
        this.m_RatePromotion = m_RatePromotion;
    }
    
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Method ">
    public InfoSemesterYearDTO() {
    }

    public InfoSemesterYearDTO(String m_InfoSemesterYearID, 
            String m_SemesterID, 
            String m_AcademicYearID, 
            Date m_DateStartCourseRegistration, 
            Date m_DealineCourseRegistration, 
            Date m_DealineFee, 
            Date m_DealinePromation, 
            int m_RatePromotion) {
        this.m_InfoSemesterYearID = m_InfoSemesterYearID;
        this.m_SemesterID = m_SemesterID;
        this.m_AcademicYearID = m_AcademicYearID;
        this.m_DateStartCourseRegistration = m_DateStartCourseRegistration;
        this.m_DealineCourseRegistration = m_DealineCourseRegistration;
        this.m_DealineFee = m_DealineFee;
        this.m_DealinePromation = m_DealinePromation;
        this.m_RatePromotion = m_RatePromotion;
    }
    
  
    @Override
    public int hashCode() {
        int hash = 3;
        hash = 79 * hash + Objects.hashCode(this.m_InfoSemesterYearID);
        hash = 79 * hash + Objects.hashCode(this.m_SemesterID);
        hash = 79 * hash + Objects.hashCode(this.m_AcademicYearID);
        hash = 79 * hash + Objects.hashCode(this.m_DealinePromation);
        hash = 79 * hash + Objects.hashCode(this.m_DealineFee);
        hash = 79 * hash + Objects.hashCode(this.m_DateStartCourseRegistration);
        hash = 79 * hash + Objects.hashCode(this.m_DealineCourseRegistration);
        hash = 79 * hash + this.m_RatePromotion;
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final InfoSemesterYearDTO other = (InfoSemesterYearDTO) obj;
        if (!Objects.equals(this.m_InfoSemesterYearID, other.m_InfoSemesterYearID)) {
            return false;
        }
        if (!Objects.equals(this.m_SemesterID, other.m_SemesterID)) {
            return false;
        }
        if (!Objects.equals(this.m_AcademicYearID, other.m_AcademicYearID)) {
            return false;
        }
        if (!Objects.equals(this.m_DealinePromation, other.m_DealinePromation)) {
            return false;
        }
        if (!Objects.equals(this.m_DealineFee, other.m_DealineFee)) {
            return false;
        }
        if (!Objects.equals(this.m_DateStartCourseRegistration, other.m_DateStartCourseRegistration)) {
            return false;
        }
        if (!Objects.equals(this.m_DealineCourseRegistration, other.m_DealineCourseRegistration)) {
            return false;
        }
        if (this.m_RatePromotion != other.m_RatePromotion) {
            return false;
        }
        return true;
    }
    //</editor-fold>
}
